<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group([
    'namespace' => '\App\\Http\\Controllers\\dashboard',
    'middleware' => ['logaccess', 'oemauth'],
], function (\Illuminate\Routing\Router $router) {

    Route::get('account', [\App\Http\Controllers\oem\OemController::class, 'account']);
    Route::post('charge', [\App\Http\Controllers\oem\OemController::class, 'charge']);
    Route::get('history', [\App\Http\Controllers\oem\OemController::class, 'history']);
    Route::post('lowest', [\App\Http\Controllers\oem\OemController::class, 'lowest']);

});
